const http = uni.$u.http

const api = {
	list:'/api/miniapp/like.php?act=list',
	like:'/api/miniapp/like.php?act=addOrDelete',
	get:'/api/miniapp/like.php?act=get',
	
}

export const list = (params, config) => http.post(api.list,params, {
	custom: {
		toast: false
	},
	
	...config
})


export const get_like = (params,config) => http.post(api.get,params, {
	custom: {
		toast: false
	},
	
	...config
})


export const like = (params,config) => http.post(api.like,params, {
	custom: {
		toast: false
	},
	
	...config
})

